package cn.fly.chatgpt.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class Qus {

    private String question;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime qusTime;

    public Qus(String question, LocalDateTime qusTime) {
        this.question = question;
        this.qusTime = qusTime;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public LocalDateTime getQusTime() {
        return qusTime;
    }

    public void setQusTime(LocalDateTime qusTime) {
        this.qusTime = qusTime;
    }

    @Override
    public String toString() {
        return "Qus{" +
                "question='" + question + '\'' +
                ", qusTime=" + qusTime +
                '}';
    }
}
